package com.katze.boot.common.config.actuator;

import org.springframework.boot.actuate.trace.http.HttpTraceRepository;
import org.springframework.boot.actuate.trace.http.InMemoryHttpTraceRepository;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 说  明：端点 httptrace
 * Spring Boot 2.2.0中，默认情况下已删除该功能,需要提供一个HttpTraceRepository
 * 作  者：zf.zeng
 * 日  期：2020-08-08 (星期六)
 **/
@Configuration
public class HttpTraceActuatorConfiguration {

    @Bean
    public HttpTraceRepository httpTraceRepository() {
        return new InMemoryHttpTraceRepository();
    }

}
